<case value="website_list">
<php>
$website_map_json=json_encode($[type]form['options']);

 
</php>

<div class="input-group" style=" width: 50%;">
<input type="text" placeholder="请输入主机id/主机名称" class="form-control input text" name="website_keyword" id="website_keyword" value="" {$[type]form.extra_attr}>
<span class="input-group-btn" style="float:left;">
<a class="btn btn-default" href="javascript:change_website_keyword();">
<i class="fa fa-search"></i>
</a>
</span> 
</div>
<br/> 
<select name="{$[type]form.name}" id="website_list_sel" class="form-control select"> 
	
</select>  

<script type="text/javascript">
$(function(){
	change_website_list_sel();
}); 
function change_website_keyword(){
	var website_keyword=$("#website_keyword").val();
	change_website_list_sel(website_keyword);
}
function change_website_list_sel(website_keyword){
	var  websiteid= "{$[type]form.value}";
 
	var website_map_json={$website_map_json};
	$.getJSON("index.php?s=/Api/Ajax/get_websitelist_sel_js",{website_keyword:website_keyword,website_map_json:website_map_json,websiteid:websiteid},function(json){
        $("#website_list_sel").html(json);
    });
}
 
</script>
   
</case>